'use strict';
const path = require('path');

// @Example Use in WebStorm2023
// WebStorm / Settings / Languages & Frameworks / Javascript / Webpack:
// -> Detect Webpack configuration files for module resolution -> Manually

function resolve (dir) {
  return path.join(__dirname, '.', dir);
}

module.exports = {
  context: path.resolve(__dirname, './'),
  resolve: {
    extensions: [ '.js' ],
    alias: {
      '~': resolve('src/')
    }
  }
};
